﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Management/MedicalDirector/MasterDirect.master"
    AutoEventWireup="true" CodeFile="Thongtinnhansu.aspx.cs" Inherits="Management_MedicalDirector_Thongtinnhansu" %>

<%@ Register Src="../PersonnelOfficer/StaffInfor.ascx" TagName="StaffInfor" TagPrefix="uc1" %>
<script runat="server">

    
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table style="width: 100%; margin-left: 0px; vertical-align: top" cellspacing="20">
        <tr>
            <td class="tdtalbe" style="text-align: center; color: red; padding-bottom: 10px">
                <asp:Label ID="lbTitle1" runat="server" Text="THÔNG TIN NHÂN SỰ" Font-Size="Large"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <table style="width: 100%">
                    <tr>
                        <td style="width: 236px">
                            <asp:Panel ID="Panel1" runat="server" Width="286px" Height="410px" ScrollBars="Vertical"
                                Style="overflow: scroll">
                                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="nhanvienDS"
                                    Width="263px" CellPadding="4" ForeColor="#333333" GridLines="None">
                                    <AlternatingRowStyle BackColor="White" />
                                    <Columns>
                                        <asp:TemplateField HeaderText="Họ và tên">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="Label1" runat="server" Text='<%# Eval("FirstName") +" " +Eval("LastName") %>'
                                                    OnClick="nhansu_Click" CommandArgument='<%# Eval("ID") %>'></asp:LinkButton>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="tbCell" />
                                            <HeaderStyle CssClass="tbHeader" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Chức vụ">
                                            <ItemTemplate>
                                                <asp:Label ID="Label2" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="tbCell" />
                                            <HeaderStyle CssClass="tbHeader" />
                                        </asp:TemplateField>
                                    </Columns>
                                    <EditRowStyle BackColor="#2461BF" />
                                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                    <RowStyle BackColor="#EFF3FB" />
                                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                                </asp:GridView>
                                <asp:SqlDataSource ID="nhanvienDS" runat="server" ConnectionString="<%$ ConnectionStrings:HOSPITALMANAGEMENTConnectionString %>"
                                    SelectCommand="SELECT tbStaff.[ID], [FirstName], [LastName], tbPosition.[Name] FROM [tbStaff] INNER JOIN tbPosition ON tbStaff.[IDPosition]=tbPosition.[ID] ORDER BY [IDPosition]">
                                    <SelectParameters>
                                    </SelectParameters>
                                </asp:SqlDataSource>
                            </asp:Panel>
                        </td>
                        <td>
                            <asp:Panel runat="server" ID="Panel2" Visible="false">
                                <uc1:StaffInfor ID="StaffInfor1" runat="server" />
                            </asp:Panel>
                        </td>
                        <td valign="top">
                            <asp:Panel runat="server" ID="pnxxx" Visible="false">
                                <table style="width: 87%">
                                    <tr>
                                        <td colspan="2" style="color: #FF0000">
                                            THIẾT LẬP THÔNG TIN ĐĂNG NHẬP
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Username:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtuser" runat="server" Width="200px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Password:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtpass" runat="server" Width="200px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Rule:
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddlrule" runat="server">
                                                <asp:ListItem Selected="True" Value="0">Medical Director</asp:ListItem>
                                                <asp:ListItem Value="1">Personnel Officer</asp:ListItem>
                                                <asp:ListItem Value="2">Charge Nurse</asp:ListItem>
                                                <asp:ListItem Value="3">Nurse</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                </table>
                                <asp:Button ID="update" runat="server" Text="Cập nhật" OnClick="update_Click" />
                            </asp:Panel>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
